package com.TwinBlade.PicturePassword;

import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.preference.PreferenceManager;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import android.widget.TextView;
import com.paypal.android.MEP.a;
import com.paypal.android.MEP.e;

class ba extends AsyncTask
{
  private ba(PayPalKey paramPayPalKey)
  {
  }

  protected Boolean a(Void[] paramArrayOfVoid)
  {
    e locale = e.a(PayPalKey.a(this.a), "APP-1PK95433T40838451", 1);
    locale.a("en_US");
    PayPalKey.a(this.a, locale.a(PayPalKey.a(this.a), 2, 0));
    return Boolean.valueOf(true);
  }

  protected void a(Boolean paramBoolean)
  {
    LinearLayout localLinearLayout = new LinearLayout(PayPalKey.a(this.a));
    localLinearLayout.setOrientation(1);
    LinearLayout.LayoutParams localLayoutParams = new LinearLayout.LayoutParams(-1, -2);
    localLayoutParams.setMargins(0, 0, 0, 35);
    PayPalKey.c(this.a).setId(1);
    PayPalKey.c(this.a).setOnClickListener(new bb(this));
    localLinearLayout.addView(PayPalKey.c(this.a), localLayoutParams);
    TextView localTextView = new TextView(PayPalKey.a(this.a));
    localTextView.setText(this.a.getString(2131296418));
    localTextView.setTextSize(20.0F);
    localLinearLayout.addView(localTextView);
    this.a.a = new EditText(PayPalKey.a(this.a));
    localLinearLayout.addView(this.a.a);
    SharedPreferences localSharedPreferences = PreferenceManager.getDefaultSharedPreferences(PayPalKey.a(this.a));
    String str = localSharedPreferences.getString("PayPalKey", "-1");
    EditText localEditText = this.a.a;
    if (str.equals("-1"))
      str = "";
    localEditText.setText(str);
    PayPalKey.a(this.a, new Button(PayPalKey.a(this.a)));
    PayPalKey.e(this.a).setId(2);
    PayPalKey.e(this.a).setText(this.a.getString(2131296417));
    PayPalKey.e(this.a).setOnClickListener(new bc(this, localSharedPreferences));
    localLinearLayout.addView(PayPalKey.e(this.a));
    this.a.setContentView(localLinearLayout);
    try
    {
      PayPalKey.b(this.a).dismiss();
      return;
    }
    catch (Exception localException)
    {
    }
  }

  protected void onPreExecute()
  {
    PayPalKey.a(this.a, ProgressDialog.show(PayPalKey.a(this.a), this.a.getString(2131296420), this.a.getString(2131296421), true));
    PayPalKey.b(this.a).setCancelable(false);
    PayPalKey.b(this.a).show();
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.TwinBlade.PicturePassword.ba
 * JD-Core Version:    0.6.2
 */